package com.sunshine.product.utils;

import com.sunshine.product.vo.ResultVO;
import lombok.Data;

/**
 * @author WeiHong
 * @date 2019/8/6 16:00
 */
@Data
public class ResultVoUtil {

    public static ResultVO success(Object object) {
        ResultVO resultVO = new ResultVO();
        resultVO.setData(object);
        resultVO.setCode(0);
        resultVO.setMsg("成功");
        return resultVO;
    }
}
